package edu.metrostate.capstonediner;

public class PinkSpoon extends GamePart {

	public PinkSpoon() {
		layer = Constants.GAMEPIECE_LAYER;
		width = 32f;
		height = 32f;
		x = ((int)(Math.random() * 3.0)+1) * (Constants.SCREEN_WIDTH / 4f);
		y = 0f;
		texture = Constants.PINK_SPOON_TEXTURE;
		hitPoints = 1;
		pointValue = 0;
	}
	
	public PinkSpoon(float startX, float startY) {
		x = startX;
		y = startY;
		layer = Constants.GAMEPIECE_LAYER;
		width = 32f;
		height = 32f;
		texture = Constants.PINK_SPOON_TEXTURE;
		hitPoints = 1;
		pointValue = 0;
	}
	
	public void collisionEffect(GamePart collided, Game game){
		game.gainScore(pointValue);
		collided.setHitPoints(collided.getHitPoints() + 10);
	}

}
